layui.use(['form'], function () {

    const form = layui.form;

    //监听提交
    form.on('submit(commit)', function (data) {
        let formData = JSON.stringify(data.field);
        let result = commonAjax(AUTH_SERVER_URL+'/role/add', formData, 'post');
        if (result.code === 200) {
            layerMsgAddSuccess();
        } else {
            layerMsgAddFail();
        }

        return false;
    });
});